
#ifndef __UFFS_NOTIFIER_H_
#define __UFFS_NOTIFIER_H_

#include "uffs/uffs_buf.h"
#include "uffs/uffs_tree.h"

#ifdef __cplusplus
extern "C"{
#endif


URET uffs_InitNotifier(struct uffs_DeviceSt *dev);
URET uffs_ReleaseNotifier(struct uffs_DeviceSt *dev);
URET uffs_AddMonitor(struct uffs_DeviceSt *dev, TreeNode *pNode, int * pRetEvent);
URET uffs_RemoveMonitor(struct uffs_DeviceSt *dev, TreeNode *pNode, int pEvent);
URET uffs_NotifyMonitor(struct uffs_DeviceSt *dev, TreeNode * pChangeNode);
//int uffs_NotifyAllDirty(uffs_DeviceSt *dev);

#ifdef __cplusplus
}
#endif

#endif //__UFFS_NOTIFIER_H_
